﻿<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	
  <head>
  	<meta http-equiv="content-type" content="text/html;charset=utf-8"/>
    <title>组织提示</title>
    <%@include file="../include/include.jsp"%>
		<link rel="stylesheet" type="text/css" href="${csspath}/public.css"/>
	<link rel="stylesheet" type="text/css" href="${csspath}/datepicker.css"/>
	<link rel="stylesheet" type="text/css" href="${csspath}/style_l.css"/>
	<link rel="stylesheet" type="text/css" href="${csspath}/jquery.alerts.css" />
	<script src="${jspath}/jquery/jquery-1.4.4.js" type="text/javascript"></script>
	<script type="text/javascript" src="${jspath}/jquery/jquery.alerts.js"></script>
		
	<script type="text/javascript">

	$(function() {

		  // 设置数据展示表格奇、偶行的背景色
		  $(".data_tab tr:odd").addClass("odd");
		  $(".data_tab tr:even").addClass("even");
		  // 设置鼠标滑过时数据展示表格行背景色的变化
		  $(".data_tab tr").mouseover(function() {
			  $(this).addClass("over");
		  }).mouseout(function() {
			  $(this).removeClass("over");
		  });
	
	});
		function doChecked(outputId,val){
			window.opener.document.getElementById(outputId).value = val;
			window.close();
		}
		function search(){
			document.getElementById("search_org").submit();
		}
    </script>
  </head>

  <body>
	
	<!-- content -->
	<div id="content">
		<!-- wrap -->
		<form:form id="search_org" action="${webcontext}/common/getOrgs?outputid=${outputid}" method="post" modelAttribute="pagerDto">
		
		<div id="wrap">

			<!-- breadcrumb -->
			<div id="breadcrumb">
				<div class="left">
					<span>组织提示</span>
					<span></span>
					<span></span>
				</div>
				<div class="right">
					<a href="#" class="back" onclick="window.close()">关闭</a>				
				</div>
			</div>
			<!-- /breadcrumb -->
			
			<!-- page_div -->
			<div class="page_div">
				<%@include file="../common/headerpage.jsp"%>
		    </div>
			<!-- /page_div -->
			<!-- data_div -->
		  <div class="data_div">
				<table class="data_tab">
					<tr>
						<th class="w_5 center">选择</th>
						<th class="width_40 center">组织代码</th>
						<th class="width_30 center">组织名称</th>
					</tr>
					
					<core:forEach items="${orgs}" var="org">
						<tr>
						<td class="center"><input name="radio1" type="radio" checked onclick="doChecked('${outputid}','${org.orgCode}');"/></td>
						<td>${org.orgCode}</td>
						<td>${org.orgName}</td>
                    	</tr>
					</core:forEach>

				</table>
				
			</div>
			<!-- /data_div -->
            <!-- page_div -->
			<div class="page_div">
				<%@include file="../common/page.jsp"%>
			</div>
			<!-- /page_div -->
			
		</div>
		</form:form>
		<!-- /wrap -->
	</div>
	<!-- /content -->

  </body>
</html>